
from fastapi import Request,Form,Cookie
from app.models.base import User
from typing import Optional


async def home(request: Request,session_id:Optional[str]=Cookie(None)):
    cookie =session_id
    session=request.session.get("session")
    page_data={
        "cookie":cookie,
        "session":session
    }
    # request.session.setdefault("5555","hdaldais")
    return request.app.state.views.TemplateResponse("home.html",{"request":request,**page_data})

async def reg_page():
    pass